﻿using Common;
using DAL;
using IBLL;
using IDAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{

    public class UpdatePassword_BLL : IUpdatePassword_IBLL
    {
        IUpdatePassword_IDal _IDal = new UpdatePassword_Dal();
        bool IUpdatePassword_IBLL.UpdatePassword(string pwd)
        {
            try
            {
                if (!verificationPassWrod_com.PassWord(pwd))
                {
                    return false;
                } 
                _IDal.Password(pwd);
                return true;
            }
            catch (Exception)
            {

                throw;
            }
           
        }
    }
}
